package cn.com.taiji.oospub.wechat.service.impl;

import cn.com.taiji.oospub.wechat.entity.CoursesImg;
import cn.com.taiji.oospub.wechat.mapper.CoursesImgMapper;
import cn.com.taiji.oospub.wechat.service.ICoursesImgService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 菜品图片关联表 服务实现类
 * </p>
 *
 * @author 
 * @since 2020-11-30
 */
@Service
public class CoursesImgServiceImpl extends ServiceImpl<CoursesImgMapper, CoursesImg> implements ICoursesImgService {

    @Autowired
    private CoursesImgMapper courseImgMapper;
    @Override
    public List<CoursesImg> findByPosNo(String posNo) {
        HashMap<String, Object> columnMap = new HashMap<>();
        columnMap.put("course_pos_no", posNo);
        return courseImgMapper.selectByMap(columnMap);
    }
}
